
{% extends 'base/list.html' %}
{% load static cache %}
{% block table-sub-tools %}

<script src="{%static 'idcops/js/jquery.min.js'%}"></script>
<script src="{%static 'idcops/xterm/xterm.js'%}"></script>
<script src="{%static 'idcops/js/webssh.js'%}"></script>
<script>
    function new_window() {
        window.open("/webssh_con", "status=1,height:500,width:600,toolbar=0")
    }
</script>

{%if can_create%}
<a class="btn btn-default btn-sm margin-r-5" href="{%url 'idcops:import' meta.model_name %}">
    <i class="fa fa-cloud-upload"></i><span class="hidden-xs"> 批量导入</span>
  </a>
{% endif%}
{%if actions%}
{% for a in actions%}
    {% if a.3 == '远1程' %}
        <button type="button" disabled="disabled" name="action" value="{{ a.1 }}" class="action-related disabled btn btn-default btn-sm margin-r-5">
           <i class="{{a.2}}"></i><span class="hidden-xs"> {{ a.3 }}</span>
        </button>
    {% else %}
        <button type="submit" disabled="disabled" name="action" value="{{ a.1 }}" class="action-related disabled btn btn-default btn-sm margin-r-5">
           <i class="{{a.2}}"></i><span class="hidden-xs"> {{ a.3 }}</span>
        </button>
    {% endif %}
{%endfor%}
{%endif%}
{% endblock table-sub-tools %}


